export default [
  {
    path: '/user',
    layout: false,
    routes: [{ path: '/user/login', component: './User/Login' }],
  },
  {
    path: '/excel',
    icon: 'summarize|custom',
    name: '导入管理',
    routes: [
      { path: '/excel', redirect: '/excel/import' },
      {
        icon: 'VersionIcon|custom',
        path: '/excel/import',
        component: './ExcelImport',
        name: 'Excel导入',
      },
    ],
  },
  {
    path: '/export',
    icon: 'CenterIcon|custom',
    name: '导出管理',
    routes: [
      { path: '/export', redirect: '/export/excel' },
      {
        path: '/export/excel',
        icon: 'LogIcon|custom',
        name: '导出编码',
        component: './ExcelExport',
      },
      {
        path: '/export/device',
        icon: 'ServerIcon|custom',
        name: '导出设备信息',
        component: './DeviceExport',
      },
    ],
  },
  // {
  //   path: '/excelExport',
  //   icon: 'summarize|custom',
  //   name: '导出编码',
  //   routes: [{ path: '/excelExport', component: './ExcelExport' }],
  // },
  // {
  //   path: '/deviceExport',
  //   icon: 'ServerIcon|custom',
  //   name: '导出设备信息',
  //   routes: [{ path: '/deviceExport', component: './DeviceExport' }],
  // },
  { path: '/', redirect: '/excel' },
  { path: '*', layout: false, component: './404' },
];
